package com.aikon.wht;

import com.aikon.wht.service.BaseService;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * Created by haitao.wang on 2016/12/12.
 */
@Configuration
@Profile("test")
public class FirstChildConfig {
    @Bean
    public BaseService baseService() {
        return new BaseService("asdfasdfasdfasdf");
    }

    @Bean
    ServerProperties serverProperties() {

        return new ServerProperties();
    }
}
